home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.BaseAction;
- import java.awt.event.ActionEvent;
- import java.beans.PropertyChangeEvent;
- import java.beans.PropertyChangeListener;
- import java.util.EventObject;
- import javax.swing.AbstractAction;
-
- public class AdvancedPane$CopyAction extends BaseAction implements PropertyChangeListener {
- // $FF: synthetic field
- final AdvancedPane this$0;
-
- public AdvancedPane$CopyAction(AdvancedPane var1) {
- super("edit.item.copy", 67);
- this.this$0 = var1;
- var1.ipeTable.copyAction.addPropertyChangeListener(this);
- var1.xpeTable.copyAction.addPropertyChangeListener(this);
- var1.igeTable.copyAction.addPropertyChangeListener(this);
- var1.xgeTable.copyAction.addPropertyChangeListener(this);
- var1.notTable.copyAction.addPropertyChangeListener(this);
- var1.piTable.copyAction.addPropertyChangeListener(this);
- var1.nsTable.copyAction.addPropertyChangeListener(this);
- var1.dtTable.copyAction.addPropertyChangeListener(this);
- ((AbstractAction)this).setEnabled(false);
- }
-
- public void updateEnabled() {
- ((AbstractAction)this).setEnabled(this.this$0.getCurrentTable().copyAction.isEnabled());
- }
-
- public void actionOccurred(ActionEvent var1) {
- this.this$0.getCurrentTable().copyAction.actionOccurred(var1);
- }
-
- public void propertyChange(PropertyChangeEvent var1) {
- if (var1.getPropertyName().equals("enabled") && ((EventObject)var1).getSource() == this.this$0.getCurrentTable().copyAction) {
- Boolean var2 = (Boolean)var1.getNewValue();
- ((AbstractAction)this).setEnabled(var2);
- }
-
- }
- }
-